/*
 * @Description:
 * @Author: william
 * @Date: 2025-02-05 09:08:11
 * @LastEditors: william
 * @LastEditTime: 2025-06-04 10:50:18
 */
import Cookies from 'js-cookie'

// language
const languageKey = 'language'

export const getCookieLang = () => Cookies.get(languageKey)
export const setCookieLang = language => Cookies.set(languageKey, language)

// ums
const tokenKey = 'cook_user_token'

export const getUmsToken = () => Cookies.get(tokenKey)
export const setUmsToken = (token, expires) =>
  Cookies.set(tokenKey, token, { expires: expires })
export const removeUmsToken = () => Cookies.remove(tokenKey)
